package com.zhang.internalcommon.utils;

/**
 * @author ADMIN
 */
public class RedisPrefixUtils {

	public static String verificationCodePrefix = "verification-code-";
	// 前缀
	public static String tokenPrefix = "token-";
	public static String blackDeviceCodePrefix = "black-device-";

	public static String generateKeyByPhone(String phone, String identity) {
		return verificationCodePrefix + identity + "-" + phone;
	}

	public static String generateTokenKey(String phone, String identity, String tokenType) {
		return tokenPrefix + phone + "-" + identity + "-" + tokenType;
	}
}
